<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="邀请记录" name="1">
        <record v-if="activeName === '1'"/>
      </el-tab-pane>
      <!--<el-tab-pane label="用户查询" name="2">-->
        <!--<check v-if="activeName === '2'"/>-->
      <!--</el-tab-pane>-->
      <!--<el-tab-pane label="奖励查询" name="3">-->
        <!--<award v-if="activeName === '3'"/>-->
      <!--</el-tab-pane>-->
    </el-tabs>
  </div>
</template>

<script>
import Record from './components/invitation/record'
import Check from './components/invitation/check'
import Award from './components/invitation/award'
export default {
  name: 'Invatation',
  components: {
    Record,
    Check,
    Award
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  padding: 0 20px;
  .addprogram {
    width: 100%;
    padding: 20px 0;
    .el-button {
      float: right;
    }
  }
}
</style>

